package com.heima.wemedia.thread;

import com.heima.model.wemedia.pojos.WmUser;

public class WmUserThreadLocal {
	private static ThreadLocal<WmUser> userThreadLocal = new ThreadLocal<>();
	
	public static WmUser get() {
		return userThreadLocal.get();
	}
	
	public static void set(WmUser wmUser) {
		WmUserThreadLocal.userThreadLocal.set(wmUser);
	}
	
	public static void remove() {
		userThreadLocal.remove();
	}
}
